Skip to content

feat: introduce AnnotationDependentResourceConfigurator concept #1532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from

Conversation

metacosm
Copy link
Collaborator

@metacosm metacosm commented Oct 7, 2022

The idea is to be able to configure dependents using annotations
directly so that we can remove the special handling of
KubernetesDependentResource from AnnotationControllerConfiguration. This
results in dependent resources being instantiated and configured
directly when processed from the annotations in the managed case, thus
rendering the DependentResourceFactory concept obsolete. This should
also lead to further simplification later.

@metacosm metacosm self-assigned this Oct 7, 2022
@metacosm metacosm requested a review from csviri October 7, 2022 09:01
csviri and others added 2 commits October 7, 2022 14:08
* feat: decouple event source from cache + list discriminator (#1378)

* feat: bulk dependent resources (#1448)

* feat: optional eventsource on dependent resources (#1479)

* refactor: simplify handling of reused event sources (#1518)



Co-authored-by: Chris Laprun <[email protected]>

* refactor: isolate index handling to BulkDependentResource interface (#1517)

* feat: key based bulk resource creation (#1521)

* improvement: bulk dependent resource api

* merge

Co-authored-by: Chris Laprun <[email protected]>
Co-authored-by: Chris Laprun <[email protected]>
@metacosm metacosm force-pushed the unify-configuration-2 branch from 6095777 to ef266b3 Compare October 17, 2022 08:28
Copy link
Collaborator

@csviri csviri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made some comments, nothing serious, I still think this could be done using an annotation instead of the interface, but we can experiment with that later.
There are some parts what is not clear to me, we should clarify document those.

@csviri
Copy link
Collaborator

csviri commented Oct 17, 2022

Made some comments, nothing serious, I still think this could be done using an annotation instead of the interface, but we can experiment with that later. There are some parts what is not clear to me, we should clarify document those.

Otherwise looks very good :)

csviri and others added 5 commits October 17, 2022 18:55
* refactor: deleteBulkResource -> deleteTargetResource

* refactor: remove now unneeded class

* refactor: deleteBulkResourcesIfRequired -> deleteExtraResources

* fix: javadoc
The idea is to be able to configure dependents using annotations
directly so that we can remove the special handling of
KubernetesDependentResource from AnnotationControllerConfiguration. This
results in dependent resources being instantiated and configured
directly when processed from the annotations in the managed case, thus
rendering the DependentResourceFactory concept obsolete. This should
also lead to further simplification later.
@metacosm metacosm force-pushed the unify-configuration-2 branch from ef266b3 to efcfe39 Compare October 18, 2022 14:10
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 26 Code Smells

37.4% 37.4% Coverage
0.0% 0.0% Duplication

@metacosm
Copy link
Collaborator Author

This is superseded by #1554. Remaining issues are tracked by #1555 and #1556.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants